package com.shike.hq.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shike.hq.entity.Group;
import com.shike.hq.mapper.GroupMapper;
import com.shike.hq.service.GroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * GroupService的接口实现类
 */
@Service
public class GroupServiceImpl extends ServiceImpl<GroupMapper, Group> implements GroupService {

    @Autowired
    private GroupMapper groupMapper;

    @Override
    public ArrayList<Group> selectAllGroupByAreaId(long areaId) {
        return groupMapper.selectAllGroupByAreaId(areaId);
    }
}
